import request from '@/utils/request';
//获取课程分类列表
export function getCourseTypeList(data) {
  return request({
    url: '/business/course/getTypeList',
    method: 'post',
    data:data
  })
}
//新增课程分类
export function addCourseType(data) {
  return request({
    url: '/business/course/addCourseType',
    method: 'post',
    data:data
  })
}
//修改课程分类
export function updateCourseType(data) {
  return request({
    url: '/business/course/editCourseType',
    method: 'put',
    data:data
  })
}
//删除课程分类
export function deleteCourseType(data) {
  return request({
    url: '/business/course/courseType/' + data,
    method: 'delete'
  })
}
